package com.leyou.dao;

import com.leyou.pojo.Sku;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface SkuMapper extends Mapper<Sku> {
    @Select("select * from tb_sku where spu_id=#{spu_id}")
    List<Sku> list(Integer spu_id);

    @Update("update tb_sku set enable=#{s} where id=#{id} ")
    void upOrDown(Integer id, Integer s);
}
